package edu.uhcl.team_drone.drone;

public class TiltComponent {
    
    private Drone owner;
    
    private final float TILT_FACTOR = 1/100f;
    
    public TiltComponent(Drone ownerIn){
        this.owner = ownerIn;
    }

    public void update(){
        tiltFromControls();
    }
    
    
    private void tiltFromControls() {
        // TILT left / right
//        owner.up.rotate(owner.direction, owner.controlX * TILT_FACTOR);
//
//        // TILT up / down
//        owner.up.rotate(owner.right, -owner.controlZ * TILT_FACTOR);
//
//        // fix direction vector after tilts
//        owner.direction = owner.up.cpy().crs(owner.right).nor();
    }

}
